<style>
<!--
.mb_title {
    color: #4697F6;
    font: bold 17px Arial,san-serif;
}
.mb_bgtitle {
    background: url("<?php echo $this->webroot;?>img/register/tieude.jpg") repeat scroll 0 0 transparent;
    border-bottom: 1px solid #D6E8FD;
    color: #E4EBF4;
    font: bold 11px Verdana,Tahoma,Arial;
    padding: 6px 6px 7px;
    width: 100%;
}
.mb_tdrow1 {
    background-color: #F5F5F8;
    padding: 6px;
}
.mb_tdrow2 {
    background-color: #F8F8FB;  
	margin-top: 10px;
	margin-left: 2em;
	margin-bottom: 1.5em;
}
.mb_tdrow2 select, .mb_tdrow2 input{
	margin-right: 20px;
	margin-left: 10px;
}
.fieldbutton {
    background: url("<?php echo $this->webroot;?>img/post/timnangcao.jpg") no-repeat scroll 0 0 transparent;
    border: 0 none;
    color: #485460;
    cursor: pointer;
    font: bold 11px Tahoma,Arial,Verdana;
    height: 32px;
    padding-bottom: 2px;
    width: 113px;
}
label.error {
    display: block;
    font-size: 110%;
    margin-bottom: 3px;
	margin-left: 50px;
	color: red;
}
-->
</style>
<?php //echo $form->create('Post');?>

<h1 class="mb_title">ĐĂNG TIN QUẢNG CÁO</h1>
<div style="background-color: #6BA4E6; height: 3px; overflow: hidden;"></div>
<br />
<?php echo $form->create('Post', array('id' => 'Form', 'controller' => 'posts', 'action' => 'add' ,'style' => 'background-color: #F2F7FD;border: 1px solid #D6E8FD;'));?>
	<?php echo $form->hidden('user_id',array('value' => $session->read('Auth.User.id')));?>
	<div class="mb_bgtitle" >Thông tin quảng cáo</div>
 
	<div class="mb_tdrow2"> 
		<?php echo $form->input('title' , array('label' => '<b>Tiêu đề:</b>', 'style' => 'width: 79%;', 'class' => 'required'));?> 
	</div>

	<div class="mb_tdrow2"> <?php echo $tinymce->input('content', array('label' => false), 'basic', null);?></div>
	
	<div class="mb_tdrow2"> 
		<b>Danh mục:</b><?php echo $form->input('category_id', array('style' => 'vertical-align: text-top; ','label' => false, 'div' => false));?>
		<b>Loại:</b><?php echo $form->input('type_id', array('style' => 'vertical-align: text-top ;','label' => false, 'div' => false));?>
		<b>Thành phố:</b><?php echo $form->input('city_id', array('style' => 'vertical-align: text-top ;','label' => false, 'div' => false));?>
	</div>
	
	<div class="mb_tdrow2"> <?php echo $form->input('address', array('label' => '<b>Địa chỉ:</b>', 'div' => false, 'style' => 'width: 80%;'));?></div>

	<div class="rv_tdrow2" align="center"  style="text-align: center ; margin-top: 1em;  margin-bottom: 1em;">
		<input class="fieldbutton" type="submit" value="Đồng ý" name="submit">
	</div>
<?php echo $form->End();?>

<script>
$(document).ready(function(){
	$('#Form').validate();
});
</script>
